package com.winona.ui;

import java.net.URL;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.TextView;
import com.taplinker.client.R;
import com.winona.Base1Activity;
import com.winona.HomeActivity;

public class FlyActivity extends Base1Activity {
	private TextView title;
	private WebView webView;
	private ImageButton back;
	private Intent intent;
	private final static String url = "http://m.veryzhun.com/";

	@SuppressLint("SetJavaScriptEnabled")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.inquiry);
		findView();

		title.setText("测试中心");

		webView.loadUrl(url);
		webView.getSettings().setJavaScriptEnabled(true);
		setLinstener();

	}

	private void setLinstener() {
		back.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				intent = new Intent(FlyActivity.this, HomeActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.input, R.anim.out);
			}
		});

	}

	private void findView() {
		title = (TextView) findViewById(R.id.inquiry_title);
		back = (ImageButton) findViewById(R.id.inquiry_back);
		webView = (WebView) findViewById(R.id.wb_inquiry);
	}

}
